﻿/// <reference path="../jquery.min.js" />
/// <reference path="../rsseasy.app.js" />
/// <reference path="../rsseasy.min.js" />
/// <reference path="../view.js" />

$(function () {

    var myarticlepage = $("#myarticlepage");
    myarticlepage.load(function () {
        new Ajax("article/my/list").setloading(myarticlepage.find("article")).keyvalue("myid", RssUser.Data.myid).getJson(function (json) {
            RssView.articlelist($("#myarticlist"),json);
        });
    });

    var mycollectpage = $("#mycollectpage");
    mycollectpage.load(function () {
        new Ajax("article/my/collect").setloading(mycollectpage.find("article")).keyvalue("myid", RssUser.Data.myid).getJson(function (json) {
            RssView.articlelist($("#mycollectlist"), json);
        });
    });
});